package com.day31;

public class Test {
    public static void main(String[] args) {
        Student s=new Student();
        s.setName("萌萌");
        System.out.println(s.getName());
        s.setSex("萌1");
        System.out.println(s.getSex());

        Time t=new Time();
        t.setHour(25);
        if (t.getHour()==-1){
            System.out.println("输入错误");
        }else{
            System.out.println(t.getHour());
        }
        System.out.println(t.getHour());

        t.setminute(59);
        if (t.getminute()==-1){
            System.out.println("输入错误");
        }else{
            System.out.println(t.getminute());
        }
    }
}
